<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>华为官网</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            huawei: { blue: '#165DFF' }
          }
        }
      }
    }
  </script>
</head>
<body class="font-sans">
  <!-- 导航 -->
  <header class="fixed w-full top-0 bg-white shadow-sm z-10">
    <div class="container mx-auto px-4 h-16 flex items-center justify-between">
      <!-- Logo -->
      <a href="#" class="flex items-center">
        <div class="w-10 h-10 bg-huawei-blue rounded flex items-center justify-center text-white font-bold text-xl">H</div>
        <span class="ml-2 text-xl font-bold text-huawei-blue">华为</span>
      </a>
      <!-- 桌面导航 -->
      <nav class="hidden md:flex space-x-6">
        <a href="#products" class="hover:text-huawei-blue">产品</a>
        <a href="#services" class="hover:text-huawei-blue">服务</a>
        <a href="#about" class="hover:text-huawei-blue">关于</a>
        <a href="#support" class="hover:text-huawei-blue">支持</a>
      </nav>
      <!-- 移动端菜单按钮 -->
      <button id="menuBtn" class="md:hidden text-xl"><i class="fa fa-bars"></i></button>
    </div>
    <!-- 移动端菜单 -->
    <div id="mobileMenu" class="hidden md:hidden bg-white border-t px-4 py-2">
      <a href="#products" class="block py-2 hover:text-huawei-blue">产品</a>
      <a href="#services" class="block py-2 hover:text-huawei-blue">服务</a>
      <a href="#about" class="block py-2 hover:text-huawei-blue">关于</a>
      <a href="#support" class="block py-2 hover:text-huawei-blue">支持</a>
    </div>
  </header>

  <main class="pt-16">
    <!-- 英雄区 -->
    <section class="h-[40vh] min-h-[280px] relative">
      <div class="absolute inset-0 bg-black/50 z-0"></div>
      <img src="https://picsum.photos/id/1/1920/1080" alt="华为产品" class="absolute w-full h-full object-cover">
      <div class="container mx-auto px-4 h-full flex items-center relative z-10 text-white">
        <div>
          <h1 class="text-2xl md:text-3xl font-bold mb-3">华为Mate系列 重新定义高端</h1>
          <a href="#products" class="inline-block px-4 py-2 bg-huawei-blue text-white rounded hover:bg-huawei-blue/90">了解产品</a>
        </div>
      </div>
    </section>

    <!-- 产品 -->
    <section id="products" class="py-8 bg-gray-50">
      <div class="container mx-auto px-4">
        <h2 class="text-2xl font-bold text-center mb-6">热门产品</h2>
        <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
          <!-- 产品1 -->
          <div class="bg-white rounded shadow-sm">
            <img src="https://picsum.photos/id/96/800/600" alt="手机" class="w-full h-32 object-cover rounded-t">
            <div class="p-3">
              <h3 class="font-semibold">智能手机</h3>
              <a href="#" class="text-sm text-huawei-blue hover:underline">查看</a>
            </div>
          </div>
          <!-- 产品2 -->
          <div class="bg-white rounded shadow-sm">
            <img src="https://picsum.photos/id/48/800/600" alt="笔记本" class="w-full h-32 object-cover rounded-t">
            <div class="p-3">
              <h3 class="font-semibold">笔记本</h3>
              <a href="#" class="text-sm text-huawei-blue hover:underline">查看</a>
            </div>
          </div>
          <!-- 产品3 -->
          <div class="bg-white rounded shadow-sm">
            <img src="https://picsum.photos/id/119/800/600" alt="平板" class="w-full h-32 object-cover rounded-t">
            <div class="p-3">
              <h3 class="font-semibold">平板电脑</h3>
              <a href="#" class="text-sm text-huawei-blue hover:underline">查看</a>
            </div>
          </div>
          <!-- 产品4 -->
          <div class="bg-white rounded shadow-sm">
            <img src="https://picsum.photos/id/180/800/600" alt="穿戴" class="w-full h-32 object-cover rounded-t">
            <div class="p-3">
              <h3 class="font-semibold">智能穿戴</h3>
              <a href="#" class="text-sm text-huawei-blue hover:underline">查看</a>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- 服务 -->
    <section id="services" class="py-8">
      <div class="container mx-auto px-4">
        <h2 class="text-2xl font-bold text-center mb-6">华为服务</h2>
        <div class="grid grid-cols-1 md:grid-cols-3 gap-4 text-center">
          <div class="p-4 hover:bg-gray-50 rounded">
            <i class="fa fa-truck text-2xl text-huawei-blue mb-2"></i>
            <h3 class="font-semibold">快速配送</h3>
            <p class="text-sm text-gray-600">全国24小时送达</p>
          </div>
          <div class="p-4 hover:bg-gray-50 rounded">
            <i class="fa fa-headphones text-2xl text-huawei-blue mb-2"></i>
            <h3 class="font-semibold">7×24客服</h3>
            <p class="text-sm text-gray-600">随时提供支持</p>
          </div>
          <div class="p-4 hover:bg-gray-50 rounded">
            <i class="fa fa-shield text-2xl text-huawei-blue mb-2"></i>
            <h3 class="font-semibold">两年质保</h3>
            <p class="text-sm text-gray-600">使用更放心</p>
          </div>
        </div>
      </div>
    </section>

    <!-- 关于 -->
    <section id="about" class="py-8 bg-gray-900 text-white">
      <div class="container mx-auto px-4">
        <h2 class="text-2xl font-bold text-center mb-4">关于华为</h2>
        <p class="text-center max-w-2xl mx-auto text-gray-300">
          华为创立于1987年，致力于把数字世界带入每个人、每个家庭、每个组织，构建万物互联的智能世界。
        </p>
      </div>
    </section>

    <!-- 支持 -->
    <section id="support" class="py-8">
      <div class="container mx-auto px-4">
        <h2 class="text-2xl font-bold text-center mb-6">获取支持</h2>
        <div class="max-w-md mx-auto text-center">
          <div class="text-2xl font-bold text-huawei-blue mb-4">950800</div>
          <p class="mb-4">华为消费者服务热线</p>
          <div class="bg-gray-50 p-4 rounded text-left">
            <h3 class="font-semibold mb-2">常见问题</h3>
            <div class="space-y-2 text-sm">
              <a href="#" class="block hover:text-huawei-blue">如何查询保修期？</a>
              <a href="#" class="block hover:text-huawei-blue">如何申请售后？</a>
            </div>
          </div>
        </div>
      </div>
    </section>
  </main>

  <!-- 页脚 -->
  <footer class="py-6 bg-gray-800 text-gray-400 text-center text-sm">
    <div class="container mx-auto px-4">
      <p>© 华为技术有限公司 版权所有</p>
    </div>
  </footer>

  <!-- 简单菜单脚本 -->
  <script>
    const menuBtn = document.getElementById('menuBtn');
    const mobileMenu = document.getElementById('mobileMenu');
    menuBtn.addEventListener('click', () => {
      mobileMenu.classList.toggle('hidden');
    });
  </script>
</body>
</html>